layui.use(["form", "layer"], function () {
    var layer = layui.layer;
    var form = layui.form;

    $('.imgcode').hover(function () {
        layer.tips("看不清？点击更换", '.verify', {
            time: 6000,
            tips: [2, "#3c3c3c"]
        })
    }, function () {
        layer.closeAll('tips');
    }).click(function () {
        $(this).attr('src', _ctx + '/validCode?id=' + Math.random());
    });

    $(".login-btn").click(function () {
        var email = $("#email").val();
        var password = $("#password").val();
        var verify = $("#verify").val();
    });

    $("#remember-me").click(function () {
        var n = document.getElementById("remember-me").checked;
        if (n) {
            $(".zt").show();
        } else {
            $(".zt").hide();
        }
    })
});